package com.ashley.queue;

/**
 * @Author ashley
 * @Date 2019/9/11 9:21
 */
public class ArrayQueueTest {
    public static void main(String[] args) {
        ArrayQueue queue = new ArrayQueue(6);

        System.out.println(queue.isEmpty());//false

        for (int i = 0; i < 6; i++) {
            queue.insert(i);
        }
        System.out.println(queue.isFull());//true

        System.out.println(queue.remove());//0
        System.out.println(queue.remove());//1

        System.out.println(queue.peekFront());//2
        System.out.println(queue.peekRear());//5

    }
}
